<?php /*a:3:{s:75:"C:\Users\pc306\Desktop\Projects\learn-php\app\index\view\member.modify.html";i:1592831677;s:36:"../app/index/view/public.header.html";i:1591618155;s:36:"../app/index/view/public.footer.html";i:1589786048;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Admin</title>
    <script type="text/javascript" src="/plug/layui/layui.js"></script>
    <script type="text/javascript" src="/static/script/common.js"></script>
    <script type="text/javascript" src="/static/script/moment.min.js"></script>
    <link rel="stylesheet" type="text/css" href="/plug/awesome/css/font-awesome.css" />
    <link rel="stylesheet" type="text/css" href="/plug/layui/css/layui.css" />
    <link rel="stylesheet" type="text/css" href="/static/css/common.css" />
</head>
<body>

<form class="layui-form layui-form-pane" style="padding: 16px">
    <div class="layui-form-item">
        <label class="layui-form-label" for="name">修改字段</label>
        <div class="layui-input-inline">
            <select name="name" id="name" lay-verify="required" lay-search="">
                <option value="member_name">姓名</option>
                <option value="member_age">年龄</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" for="value">修改的值</label>
        <div class="layui-input-block">
            <input class="layui-input" name="value" id="value" type="text" placeholder="请输入修改后的值" lay-verify="required"/>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" type="submit" lay-filter="submit" lay-submit="">提交</button>
            <button class="layui-btn" type="reset">重置</button>
        </div>
    </div>
</form>
<script type="text/javascript">
    layui.use(["layer", "form", "table", "upload", "element", "laydate"], function () {
        layui.form.on('submit(submit)', function (data) {
            postNormal(location.href, {
                    name: data.field.name,
                    value: data.field.value,
                },
                function (result) {
                    closeAll();
                    if (result.code !== '1') {
                        showMessage(result.msg);
                        return;
                    }
                    showMessage("修改成功~");
                })
            return false;
        });
    });
</script>
</body>
</html>

